package woniuxy.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

/**
 * @Author: 马宇航
 * @Description: Dao层接口
 * @DateTime: 01/19/0019 下午 3:05
 * @Component: 成都蜗牛学苑
 **/
public interface UserDao1 {
    List<Map<String,String>> findAll();
    @Insert("insert into student(name) values(#{name})")
    void insert(Map<String ,String> user);
    @Select("select * from rbac_role")
    List<Map<String,String>> findAll2();
    @Update("update rbac_manager set account=#{account} where id=#{id}")
    void updateOne(Map<String,String>stringStringMap);
    @Delete("delete  from  rbac_role where id=#{id}")
    List<Map<String,String>> findAll4();

    void upDateOne(Map<String, String> stringStringMap);
}
